package com.example.service;

import com.example.entity.Diary;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cyk
 * @since 2022-04-30
 */
@Service
public interface DiaryService extends IService<Diary> {

    public List<Diary> diaryAll(Long stuId);

    public Diary diaryById(Long id);

    int saveDiary(Diary diary);

    int updateDiary(Diary diary);

    int delDiary(Long id);
}
